module.exports = {
  publicPath: process.env.PUBLIC_PATH,
  devServer: {
    proxy: {
      '/api': {
        target: 'http://api.komavideo.com/news/list',
        ws: true,
        changeOrigin: true
      },
      '/yuejianapi': {
        target: 'http://172.24.10.175/workout/api.php',
        ws: true,
        changeOrigin: true,
        pathRewrite:{
          '^/yuejianapi':'/'
        }
      }
    }
  }
}